import {
	request
} from "./request";
export const phoneLoginAPI = (data) => request({
	url: '/userAuthorization/userAuthorization/getUserLogin',
	method: 'post',
	data: data
}); // 手机号登录
export const getPhoneLoginAPI = (code, phoneCode) => request({
	url: `/userAuthorization/userAuthorization/getWeChatAppletLogin?js_code=${code}&phone_code=${phoneCode}`,
	method: 'get'
}); // 微信获取手机号
export const addRecordAPI = (data) => request({
	url: '/userDetails/userDetails/add',
	method: 'post',
	data: data
}); // 添加档案
export const getRelationalListAPI = () => request({
	url: '/userDetails/userDetails/getRelationalList',
	method: 'get'
}); // 添加档案关系列表
export const getDrawNameListAPI = () => request({
	url: '/draw/getDrawNameList',
	method: 'get'
}); // 抽签-抽签名称列表查询
export const getDrawTypeAPI = (drawName) => request({
	url: `/draw/getDrawType?drawName=${drawName}`,
	method: 'get'
}); // 抽签-查询抽签类型
export const lotsDetailsAPI = (id) => request({
	url: `/draw/queryById?id=${id}`,
	method: 'get'
}); // 抽签-查看签词
export const getDrawNameAPI = () => request({
	url: '/oneiromancy/getTitleList',
	method: 'get'
}); // 解梦-解梦名称列表查询
export const getDrawTitleAPI = (content) => request({
	url: `/oneiromancy/getTitle?content=${content}`,
	method: 'get'
}); // 解梦-解梦标题
export const dreamDetailsAPI = (id) => request({
	url: `/oneiromancy/${id}`,
	method: 'get'
}); // 解梦-解梦详情
export const addNameAPI = (data) => request({
	url: '/nameChild/add',
	method: 'post',
	data: data
}); // 添加起名信息
export const getRecordListAPI = (userId) => request({
	url: `/nameChild/list/?userId=${userId}`,
	method: 'get'
}); // 起名列表
export const getNameListAPI = (data) => request({
	url: `/nameMeaning/list?lastName=${data.lastName}&nameType=${data.nameType}&sex=${data.sex}&pageNo=${data.pageNo}`,
	method: 'get'
}); // 名字档案
export const getRecordDetailstAPI = (id) => request({
	url: `/nameMeaning/getNameDescribe/${id}`,
	method: 'get'
}); // 名字含义
export const glyphomancyAPI = (name, sex) => request({
	url: `/glyphomancy/getByName?name=${name}&sex=${sex}`,
	method: 'get'
}); // 测字
export const addGlyphomancyPI = (data) => request({
	url: '/glyphomancy/add',
	method: 'post',
	data: data
}); // 测字添加
export const getHomeListAPI = (params) => request({
	url: `/post/postInformation/homePagePostList?pageNo=${params.pageNo}&orderByType=${params.orderByType}&postType=${params.postType == undefined ? '' : params.postType}&postContent=${params.title == undefined ? '':params.title}&postState=${params.postState}`,
	method: 'get'
}); // 帖子信息-首页帖子信息展示
export const getHoroscopeAPI = (Birthday) => request({
	url: `/constellation/constellation/getUserhoroscope?Birthday=${Birthday}`,
	method: 'get'
}); // 帖子信息-获取星座运势
export const addLikeAPI = (data) => request({
	url: '/post/postInformation/postLike',
	method: 'post',
	data: data
}); // 帖子点赞
export const notebookAPI = (data) => request({
	url: '/heSaid/heSaidTheManual',
	method: 'post',
	data: data
}); // 聊天--他说手册
export const addForumAPI = (data) => request({
	url: '/post/postInformation/add',
	method: "post",
	data
}) // 新增帖子
export const editorForumAPI = (id) => request({
	url: `/post/postInformation/editPublish?id=${id}`,
	method: "get",
}) // 编辑帖子
export const ForumDetailAPI = (id, type) => request({
	url: `/post/postInformation/queryById?id=${id}&sort=${type}`,
	method: "get"
}) // 查询帖子详情

export const commentDetailsAPI = (id, pageNo,sort) => request({
	url: `/post/postInformation/getPostCommentPage?postInformationId=${id}&pageNo=${pageNo}&sort=${sort}`,
	method: "get"
}) // 查询帖子评论
export const commentChildAPI = (postInformationId,parentId,pageSize) => request({
	url: `/PostReply/postReply/list?postInformationId=${postInformationId}&parentId=${parentId}&pageSize=${pageSize == undefined ? 10: pageSize}`,
	method: "get"
}) // 帖子评论子集
export const addCommoentAPI = (data) => request({
	url: '/postComment/postComment/add',
	method: "post",
	data
}) // 新增评论
export const reviewCommentAPI = (data) => request({
	url: '/PostReply/postReply/add',
	method: "post",
	data
}) // 评论回复
export const delCommentAPI = (id) => request({
	url: `/postComment/postComment/delete?id=${id}`,
	method: "delete"
}) // 删除帖子评论
export const sendMessage = (data) => request({
	url: '/chatHistory/chatHistory/add',
	method: "post",
	data
}) // 添加聊天记录
export const sessionList = (id,pageNo) => request({
	url: `/chatList/chatList/queryUserFriendList?userId=${id}&pageNo=${pageNo}`,
	method: "get"
}) // 查询聊天列表
export const recevoirMsg = (pageNo,recipientUserId,senderUserId) => request({
	url: `/chatHistory/chatHistory/list?pageNo=${pageNo}&recipientUserId=${recipientUserId}&senderUserId=${senderUserId}`,
	method: "get"
}) // 查询聊天记录
export const getMaxPage = (recipientUserId,senderUserId) => request({
	url: `/chatHistory/chatHistory/maxPageNo?recipientUserId=${recipientUserId}&senderUserId=${senderUserId}`,
	method: "get"
}) // 查询聊天最大分页数

export const readMessage = (data) => request({
	url: '/chatHistory/chatHistory/read',
	method: "post",
	data
}) // 聊天记录已读

export const sysMsgRead = (data) => request({
	url: '/MessageNotice/messageNotice/editMessageRead',
	method: "post",
	data
}) // 系统消息已读

///////////////// 思念河接口 /////////////////////
export  const busTreviRiveradd = (data) => request({
	url: `/treviriver/busTreviRiver/add`,
	method:'post',
	data
})// 思念河添加

export const queryByld = (id) => request({
	url: `/treviriver/busTreviRiver/queryById?id=${id}`,
	method:'get'
})//思念河通过id查询

export const  busTreviRiverldelete = (id) => request({
	url:`/treviriver/busTreviRiver/delete?id=${id}`,
	method:'delete'
})// 思念河id删除

export const  busTreviRivershow = (data) => request({
	url:`/treviriver/busTreviRiver/show`,
	method:'post',
	data
})// 思念河-数据展示

export const  Riverlike = (id) => request({
	url:`/treviriver/busTreviRiver/like?riverId=${id}`,
	method:'post',
})//弹幕点赞

export const  busTreviRiverlist = (data) => request({
	url:`/treviriver/busTreviRiver/list`,
	method:'get',
	data
})



/////////////////////////许愿池///////////////////////////
export const busTreviFountainadd = (data) => request({
	url:`/fountain/busTreviFountain/add`,
	method:'post',
	data
})//许愿池添加

export const  busTreviFountainmyWish = (data) => request({
	url:`/fountain/busTreviFountain/myWish`,
	method:'get',
	data
})//还愿池-我的还愿池

export const  busTreviFountainshow = (data) => request({
	url:`/fountain/busTreviFountain/show`,
	method:'get',
	data
})//许愿池数据展示

export const busTreviFountainwish = (ids) => request({
	url:`/fountain/busTreviFountain/wish?ids=${ids}`,
	method:'get',
})// 还愿池-还愿

export const busTreviFountainwishShow = (data) => request({
	url:`/fountain/busTreviFountain/wishShow`,
	method:'get',
	data
})//还愿池数据-展示

export const busTreviFountainlike = (id) => request({
	url:`/fountain/busTreviFountain/like?id=${id}`,
	method:'get',
})//许愿池-点赞

export const  isGetUserinfoAPI = (id) => request({
	url:`/userAuthorization/userAuthorization/isUserInfoUpdate
?userId=${id}`,
	method:'get',
})//用户授权----判断用户是否需要更新信息


export const editUser = (data) => request({
	url:`/sys/user/editUser`,
	method:'post',
	data
})//当前登录用户信息更改


export const divinationAPI = () => request({
	url:`/paipanShakeGua/paipanShakeGua/manifestationOfADivination`,
	method:'get',
})//排盘摇卦

export const divinationDetailsAPI = (data) => request({
	url:`/paipanShakeGua/paipanShakeGua/analysisOfHexagrams`,
	method:'post',
	data
})//排盘摇卦详情

export const byCodeGetUserAPI = (code) => request({
	url:`/userAuthorization/userAuthorization/getOpenIdLogin?js_code=${code}`,
	method:'get',
})//通过openid获取用户信息


//思念河放灯人数
export const busTreviRivernumber = (data) => request({
	url:'/treviriver/busTreviRiver/number',
	method:'get'
})

//获取用户信息
export const getUserInfo = () => request({
	url:'/heSaid/getNewUserInfo',
	method:'get'
})


//回话列表-添加
export const  chatListadd = (data) => request({
	url:`/chatList/chatList/add`,
	method:'post',
	data
})

//起名-通过id删除
export const nameChilddel = (id) =>request({
	 url:`/nameChild/deleteById/${id}`,
	 method:'delete'
})

export const  glyphomancydel = (id) => request({
	url:`/glyphomancy/delete?id=${id}`,
	method:'delete'
})


export const PrivacyAPI = (type) => request({
	url:`/busAgreement/busAgreement/getAgreement?type=${type}`,
	method:'post',
})//隐私协议

export const AgreementAPI = (type) => request({
	url:`/busAgreement/busAgreement/getAgreement?type=${type}`,
	method:'post'
})//用户协议


export const getUserPostLikeCount = (id) => request({
	url:`/post/postInformation/getUserPostLikeCount?id=${id}`,
	method:'get'
})//获取用户获赞量

export const getConsultInfo = (id,pageNo,pageSize,pushType) => request({
	url:`/MessageNotice/messageNotice/list?receiverid=${id}&pushType=${pushType == undefined ? '咨询消息':pushType}&pageNo=${pageNo}&pageSize=${pageSize}`,
	method:'get'
})//获取用户获赞量



export const getUserPostReadCount = (id) => request({
	url:`/post/postInformation/getUserPostReadCount?id=${id}`,
	method:'get'
})//获取用户获热度


export const showAPI = (id) => request({
	url:`/management/busFeatureManagement/getData`,
	method:'get'
})//获取页面展示

export const checkImgAPI = (picturePath,pictureType) => request({
	url:`/violationRecords/violationRecords/pushWeChatupload?picturePath=${picturePath}&pictureType=${pictureType}`,
	method:'get'
})//上传图片检测

export const platformAPI = (data) => request({
	url:`/expert/busExpertManagement/expertSettlement`,
	method:'post',
	data
})//平台入驻
export const approveDetailAPI = (id) => request({
	url:`/expert/busExpertManagement/queryExpertSettlement?expertId=${id}`,
	method:'get'
})//获取页面展示

